package com.action.common.model.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName SkuEsModel
 * @Deacription 用于传输上架商品sku信息载体，保存到es中
 * @Author sl
 * @Date 2021/6/17/017 21:26
 * @Version 1.0
 **/
@Data
public class SkuEsModel{
    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;

    private Boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attr> attrs;

    @Data
    public static class Attr {

        private Long attrId;

        private String attrName;

        private String attrValue;

    }
}
